package com.macroye.consumer;

import com.macroye.entity.req.ConsumerLoginVo;
import com.macroye.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 消费者登录调用
 */
@FeignClient(contextId = "consumerRemote", value = "macroye-consumer",
        path = "/user")
public interface ConsumerLoginRemote {

    /**
     * 消费者登录
     * @return
     */
    @PostMapping("/consumerLogin")
    public Result<ConsumerLoginVo> consumerLogin(@RequestBody ConsumerLoginVo consumerLoginVo);
}
